projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c02e9
)
GtkApplication: Respect GTK_USE_PORTAL
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 30 Aug 2018 20:38:03 +0000
(16:38 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 31 Aug 2018 02:53:36 +0000
(22:53 -0400)
When the environment variable is set, don't connect
to the session manager, but instead rely on the
inhibit portal.
gtk/gtkapplication-dbus.c
patch
|
blob
|
history
diff --git
a/gtk/gtkapplication-dbus.c
b/gtk/gtkapplication-dbus.c
index 14f7bcc49c7128cab3187eba33326c8299b9dff6..d0110a73a9a70bda37244b91b00fd5bb5b3e9403 100644
(file)
--- a/
gtk/gtkapplication-dbus.c
+++ b/
gtk/gtkapplication-dbus.c
@@
-199,6
+199,9
@@
gtk_application_impl_dbus_startup (GtkApplicationImpl *impl,
dbus->object_path = g_application_get_dbus_object_path (G_APPLICATION (impl->application));
dbus->unique_name = g_dbus_connection_get_unique_name (dbus->session);
+ if (gtk_should_use_portal ())
+ goto out;
+
g_debug ("Connecting to session manager");
/* Try the GNOME session manager first */